FROM anapsix/alpine-java:8
VOLUME /tmp
ENV JAVA_OPTS=""
ENV JOLOKIA_VERSION 1.3.7
ENV JOLOKIA_PORT 20000

EXPOSE 20000


ADD restaurant-@project.version@.jar restaurant.jar
ADD libs libs
ADD logback.xml logback.xml
RUN bash -c 'touch /restaurant.jar'
ENTRYPOINT ["sh", "-c"]
CMD ["exec java -Djava.security.egd=file:/dev/./urandom $JAVA_OPTS -jar /restaurant.jar"]